import request from '@/utils/request'

// 查询遗失物品列表
export function listLostDevices(query) {
  return request({
    url: '/LostDevices/LostDevices/list',
    method: 'get',
    params: query
  })
}

// 查询遗失物品详细
export function getLostDevices(id) {
  return request({
    url: '/LostDevices/LostDevices/' + id,
    method: 'get'
  })
}

// 新增遗失物品
export function addLostDevices(data) {
  return request({
    url: '/LostDevices/LostDevices',
    method: 'post',
    data: data
  })
}

// 修改遗失物品
export function updateLostDevices(data) {
  return request({
    url: '/LostDevices/LostDevices',
    method: 'put',
    data: data
  })
}

// 删除遗失物品
export function delLostDevices(id) {
  return request({
    url: '/LostDevices/LostDevices/' + id,
    method: 'delete'
  })
}
